package com.abefd77.demo.mytflitestartup

import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.abefd77.remoteservice.mytflitestartup.R
import kotlinx.android.synthetic.main.activity_preview.*

class PreviewActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_preview)

        val path = intent.getStringExtra("path")
        if(!path.isNullOrEmpty()){
            //图片预览操作
            img_preview.setImageURI(Uri.parse(path))
            // TODO:init classifier

            // TODO:add recognition

        }
    }
}